// main_init function main_init = function(mc){ } // main_effect function main_effect = function(mc,frame){ if(subs_done) end_effect=true; } // sub_init function sub_init = function(mc){ } // sub_effect function sub_effect = function(mc,frame){ perc = frame / lastsubframe; mc._xscale = mc._yscale = 100 + (max_scale - 100) * Math.sin(perc * deg180); if (frame == lastsubframe) mc.done=true; }